<template>
  <div class="h-screen justify-center-center">
    <Loading size="1rem" />
  </div>
</template>

<script>
import { Loading } from 'vant'
import { getLocalStore } from '@/config/global'
export default {
  name: 'Redirect',
  components: { Loading },
  created() {
    const token = getLocalStore('refactor-misc-token')
    if (!token) {
      location.href = 'login.html'
      return
    }
    location.href = 'home.html'
  }
}
</script>
